<h1>Resources List</h1>

<table>
  <thead>
    <tr>
      <th>Resourceid</th>
      <th>Loginuserid</th>
      <th>Name</th>
      <th>Emailaddress</th>
      <th>Contactnumber</th>
      <th>Rate</th>
      <th>Availability</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($resources as $resource): ?>
    <tr>
      <td><a href="<?php echo url_for(array('sf_route' => 'resource_show', 'sf_subject' => $resource))?>"><?php echo $resource->getResourceid() ?></a></td>
      <td><?php echo $resource->getLoginuserid() ?></td>
      <td><?php echo $resource->getName() ?></td>
      <td><?php echo $resource->getEmailaddress() ?></td>
      <td><?php echo $resource->getContactnumber() ?></td>
      <td><?php echo $resource->getRate() ?></td>
      <td><?php echo $resource->getAvailability() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('resource/new') ?>">New</a>
